package com.magicalcoder.pigeon.common.message;

/**
 * Created by hzhedongyu on 2017/5/24.
 * 这些是客户端传来的 其实就是想让服务端调用接口实现的方法
 */
public class PigeonRequest {

    private String requestId;//唯一值 UUID生成 保证线程在获取返回时能根据此ID找回之前状态
    //客户端只能暴露接口 而没有实现类
    private String interfaceName;
    private String methodName;
    private Class<?>[] paramTypes;
    private Object[] params;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class<?>[] getParamTypes() {
        return paramTypes;
    }

    public void setParamTypes(Class<?>[] paramTypes) {
        this.paramTypes = paramTypes;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }
}
